export const AUTH_ERROR = 403

//!!需要特别注意的是，export命令规定的是对外的接口，必须与模块内部的变量建立一一对应关系。

//LOGIN_STATUS 是命名 =输出的是变量
export const LOGIN_STATUS = {
  NOT_LOGIN: 'NOT_LOGIN'
}

export const LOGIN_MESSAGE = {
  [LOGIN_STATUS.NOT_LOGIN]: '未登录'
}

//test变量名 =输出的函数 要用test()调用
export const testFunction = function (x, y) {
  console.log(x, y)
}

export function testFunction1(x, y) {
  console.log(x, y)
}

export const CARD_DEMO_DATA = {
  label: '客户',
  data: [
    {
      label: '帮助中心',
      url: '/demo1'
    },
    {
      label: '售后服务',
      url: '/demoq222weqwwe'
    },
    {
      label: '在线客服',
      url: '/demo111333111'
    },
    {
      label: '意见建议',
      url: '/demoeqweqw22221111'
    },
    {
      label: '电话服务',
      url: '/demo222222442222222'
    },
    {
      label: '客服邮箱',
      url: '/demo222ewqeq'
    },
    {
      label: '金融咨询',
      url: '/demo11'
    },
    {
      label: '全球售客服',
      url: '/demo1'
    }
  ]
}

export const MANY_CARD_DEMO_DATA = [
  {
    label: '客户A',
    data: [
      {
        label: '帮助中心',
        url: '/demo1'
      },
      {
        label: '售后服务',
        url: '/demo2'
      },
      {
        label: '在线客服',
        url: '/demo3'
      },
      {
        label: '意见建议',
        url: '/demo1'
      },
      {
        label: '电话服务',
        url: '/menu'
      },
      {
        label: '客服邮箱',
        url: '/demo3'
      },
      {
        label: '金融咨询',
        url: '/demo1'
      },
      {
        label: '全球售客服',
        url: '/demo2'
      }
    ]
  },
  {
    label: '客户B',
    data: [
      {
        label: '帮助中心',
        url: '/menu'
      },
      {
        label: '售后服务',
        url: '/menu'
      },
      {
        label: '在线客服',
        url: '/menu'
      },
      {
        label: '意见建议',
        url: '/menu'
      },
      {
        label: '电话服务',
        url: '/menu'
      },
      {
        label: '客服邮箱',
        url: '/menu'
      },
      {
        label: '金融咨询',
        url: '/menu'
      },
      {
        label: '全球售客服',
        url: '/menu'
      }
    ]
  }
]

export const MANY_CARD_DEMO_DATA_ROW = [
  {
    label: '客户A',
    data: [
      {
        label: '帮助中心',
        url: '/menu'
      },
      {
        label: '售后服务',
        url: '/menu'
      },
      {
        label: '在线客服',
        url: '/menu'
      },
      {
        label: '意见建议',
        url: '/menu'
      },
      {
        label: '电话服务',
        url: '/menu'
      },
      {
        label: '客服邮箱',
        url: '/menu'
      },
      {
        label: '金融咨询',
        url: '/menu'
      },
      {
        label: '全球售客服',
        url: '/menu'
      }
    ]
  },
  {
    label: '客户B',
    data: [
      {
        label: '帮助中心',
        url: '/menu'
      },
      {
        label: '售后服务',
        url: '/menu'
      },
      {
        label: '在线客服',
        url: '/menu'
      },
      {
        label: '意见建议',
        url: '/demo1'
      },
      {
        label: '电话服务',
        url: '/demo2'
      },
      {
        label: '客服邮箱',
        url: '/demo1'
      },
      {
        label: '金融咨询',
        url: '/menu'
      },
      {
        label: '全球售客服',
        url: '/menu'
      }
    ]
  },
  {
    label: '客户C',
    data: [
      {
        label: '帮助中心',
        url: '/menu'
      },
      {
        label: '售后服务',
        url: '/menu'
      },
      {
        label: '在线客服',
        url: '/menu'
      },
      {
        label: '意见建议',
        url: '/menu'
      },
      {
        label: '电话服务',
        url: '/menu'
      },
      {
        label: '客服邮箱',
        url: '/menu'
      },
      {
        label: '金融咨询',
        url: '/menu'
      },
      {
        label: '全球售客服',
        url: '/menu'
      }
    ]
  },
  {
    label: '客户D',
    data: [
      {
        label: '帮助中心',
        url: '/menu'
      },
      {
        label: '售后服务',
        url: '/menu'
      },
      {
        label: '在线客服',
        url: '/menu'
      },
      {
        label: '意见建议',
        url: '/menu'
      },
      {
        label: '电话服务',
        url: '/menu'
      },
      {
        label: '客服邮箱',
        url: '/menu'
      },
      {
        label: '金融咨询',
        url: '/menu'
      },
      {
        label: '全球售客服',
        url: '/menu'
      }
    ]
  }
]

export const TITLE_INFO = [
  {
    label: '我的订单',
    url: '/menu'
  },
  {
    label: '我的京东',
    url: '/menu',
    detail: MANY_CARD_DEMO_DATA,
    direction: 'column'
  },
  {
    label: '京东会员',
    url: '/menu'
  },
  {
    label: '企业采购',
    url: '/menu',
    detail: MANY_CARD_DEMO_DATA,
  },
  {
    label: '客户服务',
    url: '/menu'
  },
  {
    label: '网站导航',
    url: '/menu',
    detail: MANY_CARD_DEMO_DATA_ROW,
    direction: 'row'
  },
  {
    label: '手机京东',
    url: '/menu'
  },

]

export const PROVINCE = [{
  label: '请选择城市',
  data: [{
    label: '北京',
    url: '北京'
  }, {
    label: '天津',
    url: '天津'
  }, {
    label: '河北',
    url: '河北'
  }, {
    label: '山西',
    url: '山西'
  }, {
    label: '内蒙古',
    url: '内蒙古'
  }, {
    label: '辽宁',
    url: '辽宁'
  }, {
    label: '吉林',
    url: '吉林'
  }, {
    label: '黑龙江',
    url: '黑龙江'
  }, {
    label: '上海',
    url: '上海'
  }, {
    label: '江苏',
    url: '江苏'
  }, {
    label: '浙江',
    url: '浙江'
  }, {
    label: '安徽',
    url: '安徽'
  }, {
    label: '福建',
    url: '福建'
  }, {
    label: '江西',
    url: '江西'
  }, {
    label: '山东',
    url: '山东'
  }, {
    label: '河南',
    url: '河南'
  }, {
    label: '湖北',
    url: '湖北'
  }, {
    label: '湖南',
    url: '湖南'
  }, {
    label: '广东',
    url: '广东'
  }, {
    label: '广西',
    url: '广西'
  }, {
    label: '海南',
    url: '海南'
  }, {
    label: '重庆',
    url: '重庆'
  }, {
    label: '四川',
    url: '四川'
  }, {
    label: '贵州',
    url: '贵州'
  }, {
    label: '云南',
    url: '云南'
  }, {
    label: '西藏',
    url: '西藏'
  }, {
    label: '陕西',
    url: '陕西'
  }, {
    label: '甘肃',
    url: '甘肃'
  }, {
    label: '青海',
    url: '青海'
  }, {
    label: '宁夏',
    url: '宁夏'
  }, {
    label: '新疆',
    url: '新疆'
  }]
}]

export const HOT_WORLD = [
  {
    label: '秒杀',
    url: '/menu',
    style: {
      color: 'red',
    }
  },
  {
    label: '优惠卷',
    url: '/menu',
    style: {
      color: 'red',
    }
  },
  {
    label: 'PLUS会员',
    url: '/menu',
  },
  {
    label: '品牌闪购',
    url: '/menu',
  },
  {
    label: '拍卖',
    url: '/menu',
  },
  {
    label: '京东时尚',
    url: '/menu',
  },
  {
    label: '京东超市',
    url: '/menu',
  },
  {
    label: '京东生鲜',
    url: '/menu',
  },
  {
    label: '海囤全球',
    url: '/menu',
  },
  {
    label: '京东金融',
    url: '/menu',
  },
]

export const SWIPE_DATA = [
  {
    id: 1,
    src: require('../assets/pic1.jpeg'),
    url: '/menu',
    advice: '广告1'
  },
  {
    id: 2,
    src: require('../assets/pic2.png'),
    url: '/menu',
    advice: '广告2'
  },
  {
    id: 3,
    src: require('../assets/pic3.jpeg'),
    url: '/menu',
    advice: '广告3'
  },
  {
    id: 4,
    src: require('../assets/pic4.png'),
    url: '/menu',
    advice: '广告3'
  }
]

export const RECOMMEND_DATA = [
  [
    {
      id: 1,
      src: require('../assets/pic1.jpeg'),
      url: '/menu',
      advice: '广告1'
    },
    {
      id: 2,
      src: require('../assets/pic2.png'),
      url: '/menu',
      advice: '广告2'
    },
    {
      id: 3,
      src: require('../assets/pic3.jpeg'),
      url: '/menu',
      advice: '广告3'
    }
  ],
  [
    {
      id: 3,
      src: require('../assets/pic1.jpeg'),
      url: '/menu',
      advice: '广告1'
    },
    {
      id: 4,
      src: require('../assets/pic3.jpeg'),
      url: '/menu',
      advice: '广告2'
    },
    {
      id: 5,
      src: require('../assets/pic2.png'),
      url: '/menu',
      advice: '广告3'
    }
  ],
  [
    {
      id: 6,
      src: require('../assets/pic3.jpeg'),
      url: '/menu',
      advice: '广告1'
    },
    {
      id: 7,
      src: require('../assets/pic2.png'),
      url: '/menu',
      advice: '广告2'
    },
    {
      id: 8,
      src: require('../assets/pic1.jpeg'),
      url: '/menu',
      advice: '广告3'
    }
  ]
]

export const NAVIGATION_MENU = [
  [
    {
      label: '家用电器',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    }
  ],
  [
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ],
  [
    {
      label: '手机',
      url: '/menu'
    },
    {
      label: '家用电器',
      url: '/menu'
    },
    {
      label: '电脑',
      url: '/menu'
    }
  ]
]

//20情况 隐藏/显示
export const CUSTOM_DATA = [
  {
    type: 'button',
    label: '注册',
    eventType: 'aButton',
    eventAction: function () {
      console.log('aButton提交数据')
    }
  },
  {
    name: 'button2',
    type: 'input',
    label: '用户名',
    model: 'usr'
  },
  {
    type: 'input',
    label: '密码',
    model: 'pas'
  },
  {
    type: 'input',
    label: '验证码',
    model: 'yzm'
  },
  {
    type: 'button',
    label: '密码',
    eventType: 'bButton',
    eventAction: function () {
      console.log('bButton提交数据')
    }
  },
  {
    type: 'button',
    label: '重置输入',
    eventType: 'cButton',
    eventAction: function () {
      // console.log(this)
      console.log(this.inputModel)
      // this.inputModel=Object.assign({},this)
      // console.log('cButton提交数据' + JSON.stringify(data))
    }
  }
]

